package com.igeekhome.service.impl;

import com.igeekhome.mapper.SysRoleMapper;
import com.igeekhome.pojo.SysRole;
import com.igeekhome.service.ISysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 立以宁
 */
@Service("sysRoleService")
public class SysRoleServiceImpl implements ISysRoleService {
    @Autowired
    private SysRoleMapper sysRoleMapper;
    @Override
    public List<SysRole> selectAllRole() {
        List<SysRole> sysRoles = sysRoleMapper.selectByExample(null);
        return sysRoles;
    }
}
